package com.example.treinamentotiroaoalvo;

import com.example.treinamentotiroaoalvo.R;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

public class BitmapStorage 
{
	private static BitmapStorage instance;
	public Bitmap target;
	public Bitmap background;
	public Bitmap aim;
	public Bitmap shootButton;
	
	public Bitmap getTargetImage()
	{
		return target;
	}
	
	public Bitmap getBackgroundImage()
	{
		return background;
	}
	
	public Bitmap getAimImage()
	{
		return aim;
	}
	
	public Bitmap getShootButtonImage()
	{
		return shootButton;
	}
	
	public BitmapStorage()
	{
		target = BitmapFactory.decodeResource(GameLoop.res, R.drawable.target);
		background = BitmapFactory.decodeResource(GameLoop.res, R.drawable.background);
		aim = BitmapFactory.decodeResource(GameLoop.res, R.drawable.aim);
		shootButton = BitmapFactory.decodeResource(GameLoop.res, R.drawable.atirar);
	}
	
	public static BitmapStorage getInstance()
	{
		if(instance == null)
		{
			instance = new BitmapStorage();
		}
		return instance;
	}
}
